package p270jp.pxv.android.viewholder;

import android.view.View;
import android.view.ViewGroup;
import androidx.recyclerview.widget.RecyclerView;
import p045be.View$OnClickListenerC1120z;
import p216hn.DefaultConstructorMarker;
import p270jp.pxv.android.R;
import p270jp.pxv.android.model.point.PpointPrice;
import p314lg.ViewHolderPpointPriceListItemBinding;
import p325m0.MutabilityOwnership;
import p652yj.C7346b;
import p653yk.PpointPurchaseActionCreator;

/* compiled from: PpointPriceListItemViewHolder.kt */
/* renamed from: jp.pxv.android.viewholder.PpointPriceListItemViewHolder */
/* loaded from: classes2.dex */
public final class PpointPriceListItemViewHolder extends RecyclerView.AbstractC0819y {
    private final ViewHolderPpointPriceListItemBinding binding;
    public static final Companion Companion = new Companion(null);
    public static final int $stable = 8;

    /* compiled from: PpointPriceListItemViewHolder.kt */
    /* renamed from: jp.pxv.android.viewholder.PpointPriceListItemViewHolder$Companion */
    /* loaded from: classes2.dex */
    public static final class Companion {
        private Companion() {
        }

        public /* synthetic */ Companion(DefaultConstructorMarker eVar) {
            this();
        }

        public final PpointPriceListItemViewHolder createViewHolder(ViewGroup viewGroup) {
            ViewHolderPpointPriceListItemBinding i8Var = (ViewHolderPpointPriceListItemBinding) C7346b.m327a(viewGroup, "parent", R.layout.view_holder_ppoint_price_list_item, viewGroup, false);
            MutabilityOwnership.m3746l(i8Var, "binding");
            return new PpointPriceListItemViewHolder(i8Var, null);
        }
    }

    private PpointPriceListItemViewHolder(ViewHolderPpointPriceListItemBinding i8Var) {
        super(i8Var.f2666e);
        this.binding = i8Var;
    }

    public /* synthetic */ PpointPriceListItemViewHolder(ViewHolderPpointPriceListItemBinding i8Var, DefaultConstructorMarker eVar) {
        this(i8Var);
    }

    /* renamed from: a */
    public static /* synthetic */ void m4400a(PpointPurchaseActionCreator fVar, PpointPrice ppointPrice, View view) {
        m12330onBindViewHolder$lambda0(fVar, ppointPrice, view);
    }

    /* renamed from: onBindViewHolder$lambda-0 */
    public static final void m12330onBindViewHolder$lambda0(PpointPurchaseActionCreator fVar, PpointPrice ppointPrice, View view) {
        MutabilityOwnership.m3745m(fVar, "$ppointPurchaseActionCreator");
        MutabilityOwnership.m3745m(ppointPrice, "$ppointPrice");
        fVar.m316h(ppointPrice.getProductId());
    }

    public final void onBindViewHolder(PpointPrice ppointPrice, PpointPurchaseActionCreator fVar) {
        MutabilityOwnership.m3745m(ppointPrice, "ppointPrice");
        MutabilityOwnership.m3745m(fVar, "ppointPurchaseActionCreator");
        this.binding.f21691q.setText(ppointPrice.getPointName());
        this.binding.f21692r.setText(ppointPrice.getPrice());
        this.itemView.setOnClickListener(new View$OnClickListenerC1120z(fVar, ppointPrice, 5));
        this.binding.m11392i();
    }
}
